<?php
class ViewBidJob extends CWidget {

    //public $data;
    //public $userUp;
    public $countBid;
    public $bid;
	
    public function init() {
        parent::init();
    }
    
    public function run() {
	
		$criteria=new CDbCriteria;
		$criteria->compare('job_id',$this->bid->id,true);
		$modelBid = Bidjob::model()->findAll($criteria);

		//$user_bid = Bidjob::model()->findByAttributes(array('job_id'=>$this->bid->id));	
		//$users = Users::model()->findByAttributes(array('id'=>$this->bid->user_id));
        $this->render('viewBidJob', array('modelBid'=>$modelBid));
    }
}
?>